You are here: Statements and Functions > GetCost()
Syntax samples
GETCOST()
Returns the cost of the current entity executing the logic. Use this function to return the entity’s actual, accumulated dollar amount.
Operation logic only.
Example
The following example shows how to use the GETCOST() function to generate a Time Series plot that tracks changing entity cost as entities exit the system. (See table below.)
• Create a variable (e.g., Var1), select it to be of type real, and select time series statistics.
• For any location where an entity exits the system, place the following as the last line in operation logic:
Var1 = GETCOST()
Process Table
Entity |
Location |
Opn (min) |
---|---|---|
EntA |
Shipping |
WAIT N(3,.52) Var1=GETCOST() |
Routing Table
Blk |
Output |
Destination |
Rule |
Move Logic |
---|---|---|---|---|
1 |
EntA |
Exit |
FIRST 1 |
|
INCENTCOST, INCLOCCOST, and SETRATE.